<?php
/*
Bitsand - a web-based booking system for LRP events
Copyright (C) 2006, 2007 Russell Peter Phillips

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

include ('../inc/inc_head_db.php');
include ('../inc/inc_admin.php');
include ('../inc/inc_head_html.php');
?>

<h1><?php echo TITLE?> - Admin</h1>

<h3>Booking Data</h3>

<p>
The reports below are based on the people that have booked for the upcoming event <i>only</i>. People that have confirmed IC &amp; OOC details, and been marked as paid are considered to have booked. The &quot;Mark payments received&quot; report obviously only includes people that haven't been marked as paid.
</p>

<p>
<a href = "admin_adduser.php">Add a new user</a> (use when players book with paper form)<br>
<a href = "admin_markpaid.php">Mark payments received</a><br>
<a href = "admin_bunks.php">Assign bunks</a><br>
<?php
if (RPG_NAME == 'LT')
	echo "<a href = 'admin_cards.php'>Cards, Lore Sheets, Meal Tickets &amp; bunks required</a><br>\n";
else
	echo "<a href = 'admin_cards.php'>Meal Tickets &amp; bunks required</a><br>\n";
?>
<a href = "admin_bookings_csv.php">Save bookings to csv</a> (use as a mail merge source for creating character cards, etc)<br>
<a href = "admin_bookingstatus.php">Bookings Status</a><br>
<a href = "admin_signsheet.php">Signature &amp; Car Registration sheet</a> (for printing)<br>
<a href = "admin_booked.php">Players booked</a> - includes car registrations, and has links to full data of any player<br>
</p>

<h3>All Data</h3>

<p>
The reports below are based on <i>all</i> the data in the database, not just those people that have booked for the upcoming event.
</p>

<p>
<a href = "admin_search.php">Search</a> - includes links to edit player's IC and/or OOC details. Use this to change a user's password or re-enable a disabled account<br>
<?php
if (RPG_NAME == 'LT')
	echo "<a href = 'admin_notes.php'>Players with admin notes or illegal combinations of skills</a><br>\n";
else
	echo "<a href = 'admin_notes.php'>Players with admin notes</a><br>\n";
?>
</p>

<h3>Site Admin etc</h3>

<p>
<a href = "admin_faq.php">Add/edit/delete FAQ items</a><br>
</p>

<?php
if (ROOT_USER_ID == $PLAYER_ID) {
	echo "<p>\n<b>root user pages</b><br>\n";
	echo "<a href = 'root_accesslog.php'>Query access log</a><br>\n";
	echo "<a href = 'root_admins.php'>List and create admin users</a><br>\n";
	echo "<a href = 'root_emptybookings.php'>Remove all bookings</a><br>\n";
	echo "<a href = 'root_keychange.php'>Change database encryption key or password salt</a><br>\n";
	echo "</p>\n";
}

include ('../inc/inc_foot.php');
?>
